package com.nbsaas.boot.controller.web;

import com.nbsaas.boot.rest.response.ListResponse;
import com.nbsaas.boot.rest.response.MapResponse;
import com.nbsaas.boot.rest.response.ResponseObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
public class MessageController {



    @RequestMapping("sendMessage")
    public ResponseObject<?> sendMessage(String client,String message) {
        ResponseObject<?> result=new ResponseObject<>();
        return result;
    }

    @RequestMapping("list")
    public ListResponse<MapResponse> list() {
      ListResponse<MapResponse> result=new ListResponse<>();
        result.setData(new ArrayList<>());


        return result;
    }

    @RequestMapping("/doTest")
    public ResponseObject<?> doTest(String sessionId) {
        ResponseObject<?> result = new ResponseObject<>();
//        orderInfoApi.listData(Filter.and(Filter.ge("id",1)),Filter.le("id",10),
//                Filter.or(Filter.ge("id",10000)),Filter.le("id",10003)
//                );

        return result;
    }

}
